package com.ln.common;

public class Filter {
	private static final String[] label = {"<",">","&lt;","&gt;"};
	/**
	 * 过滤HTML标签
	 * @param needFilterStr
	 * @return
	 */
	public static String filterLabel(String needFilterStr){
		return needFilterStr.replaceAll(label[0], label[2]).replaceAll(label[1], label[3]);
	}
}
